package com.alibaba.citrus.ots.b2b.trade.order.repository;

import com.alibaba.citrus.ots.b2b.trade.order.repository.request.UpdateFeaturesReq;
import com.epoch.app.otsb2btradecenter.model.dto.FeaturesUpdateRequest;
import com.epoch.app.otsb2btradecenter.sdo.OrderLineSDO;

public interface OrderLineWriteRepository {

    String batchCreateOrderLine(OrderLineSDO orderLineSDO);

    Boolean modifyOrderLine(OrderLineSDO orderLineSDO);

    Boolean batchUpdateOrderLine(String orderId,Integer status);

    /**
     * 移除销售子订单
     * @param orderLineSDO
     * @return
     */
    String remove(OrderLineSDO orderLineSDO);


    /**
     * 修改销售子订单
     * @param orderLineSDO
     */
    Boolean modify(OrderLineSDO orderLineSDO);

    /**
     * 保存销售子订单
     * @param orderLineSDO
     * @return String
     */
    String save(OrderLineSDO orderLineSDO);

    /**
     * 批量修改子订单状态
     * @param orderLineSDO
     * @return
     */
    Boolean modifyStatus(OrderLineSDO orderLineSDO);

    Boolean updateFeatures(UpdateFeaturesReq featuresUpdateRequest);
}
